]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
run-js-test: link to libgnome-shell.la
authorDan Winship <danw@gnome.org>
Sat, 30 Apr 2011 14:00:36 +0000 (10:00 -0400)
committerDan Winship <danw@gnome.org>
Mon, 16 May 2011 18:54:04 +0000 (14:54 -0400)
The tests were broken again, because since Shell-0.1.gir now has
'shared-library="libgnome-shell.so"', the references to Shell.PerfLog
ended up pulling in libgnome-shell in addition to the copy of
shell-perf-log.c that libjs-test was built with.

Fix all this hopefully forever by just making run-js-test link to
libgnome-shell.

https://bugzilla.gnome.org/show_bug.cgi?id=649203

configure.ac
src/Makefile.am

index abd4c25066c3388ab20c869b554efffb29549e58..31d565c772a64706e341bbec047242605c1f37df 100644 (file)
@@ -120,7 +120,6 @@ PKG_CHECK_MODULES(ST, clutter-1.0 gtk+-3.0 libcroco-0.6 >= 0.6.2 gnome-desktop-3
 PKG_CHECK_MODULES(GDMUSER, dbus-glib-1 gtk+-3.0)
 PKG_CHECK_MODULES(TRAY, gtk+-3.0)
 PKG_CHECK_MODULES(GVC, libpulse libpulse-mainloop-glib gobject-2.0)
-PKG_CHECK_MODULES(JS_TEST, clutter-x11-1.0 gjs-1.0 gobject-introspection-1.0 gtk+-3.0)
 PKG_CHECK_MODULES(DESKTOP_SCHEMAS, gsettings-desktop-schemas >= 0.1.7)
 
 AC_MSG_CHECKING([for bluetooth support])
index cdb3173ab20161b19b8306fdaed8591b2bee8235..d5e825aba0fa0c307de81f1cdf938e8173aba00a 100644 (file)
@@ -186,27 +186,10 @@ gnome_shell_perf_helper_LDADD = $(SHELL_PERF_HELPER_LIBS)
 
 ########################################
 
-# In order to run the interactive tests for GUI components, we need to have
-# an executable that exports the St components. Libtool doesn't have a way
-# to include all the symbols from a convenience library into a executable
-# so what we do is build a small uninstalled library that pulls in the
-# St convenience library and link the test running program to that.
-
-noinst_LTLIBRARIES += libjs-test.la
-
-libjs_test_la_LDFLAGS = -rpath $(libdir)
-libjs_test_la_CPPFLAGS = $(JS_TEST_CFLAGS)
-libjs_test_la_LIBADD = $(JS_TEST_LIBS) libst-1.0.la
-
-# The tests use or reference a couple of Shell classes
-libjs_test_la_SOURCES =                \
-       shell-generic-container.c       \
-       shell-perf-log.c
-
 noinst_PROGRAMS += run-js-test
 
-run_js_test_CPPFLAGS = $(JS_TEST_CFLAGS)
-run_js_test_LDADD = $(JS_TEST_LIBS) libjs-test.la
+run_js_test_CPPFLAGS = $(gnome_shell_cflags)
+run_js_test_LDADD = libgnome-shell.la $(libgnome_shell_la_LIBADD)
 run_js_test_LDFLAGS = -export-dynamic
 
 run_js_test_SOURCES =                  \